<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
</head>
<body>
    <h2>这是首页</h2>
    <% if(user !=null){ %> 
        <h3>
            欢迎<%= user.uname %>,登录时间 <%= new Date() %> 
        </h3>
    <% }else { %> 
        <h3>匿名登录，举报</h3>
    <% } %> 
</body>
</html>